$OpenBSD: patch-chroot_c,v 1.1 2011/11/17 12:35:33 robert Exp $
--- chroot.c.orig	Thu Nov 17 13:30:46 2011
+++ chroot.c	Thu Nov 17 13:34:51 2011
@@ -41,7 +41,7 @@ PHP_FUNCTION(chroot)
 		RETURN_FALSE;
 	}
 
-	php_clear_stat_cache(TSRMLS_C);
+	php_clear_stat_cache(0, NULL, 0 TSRMLS_CC);
 	
 	ret = chdir("/");
 	
